<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@page import="java.util.*"%>
<%@page import="support.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Verification Page</title>
</head>
<body>
	<%
		//get specialization info from specialization page and set to session
		String specailization = request.getParameter("specailization");
		support s = new support();
		Vector specializations = s.getSpecializations();
		specailization = specializations.get(
				Integer.parseInt(specailization)).toString();
		session.setAttribute("specailization", specailization);

		boolean flag = false;
		if (session.getAttribute("CountryOfResident").equals(
				"United States"))
			flag = true;
	%>
	<p>
		Hello,
		<%=session.getAttribute("FirstName")%>
		<%=session.getAttribute("MiddleI")%>
		<%=session.getAttribute("LastName")%>
	<p>
		Your country of citizenship is:
		<%=session.getAttribute("CountryOfCitizenship")%>
	<p>
		Your country of resident is:
		<%=session.getAttribute("CountryOfResident")%>
	<p>
		Your street address is:
		<%=session.getAttribute("StreetAddress")%>
	<p>
		Your city is:
		<%=session.getAttribute("City")%>

		<%
			if (flag) {
		%>
	<p>
		Your state is:
		<%
			} else {
		%>
	<p>
		Your country telephone code is:
		<%
			}
		%>
	<%=session.getAttribute("AddressState")%>
	<p>
		Your zip code is:
		<%=session.getAttribute("ZipCode")%>
	<p>
		Your area code is:
		<%=session.getAttribute("AreaCode")%>
	<p>
	    You are
		<%=session.getAttribute("USResident")%>
	
	<p>
		<%
			Vector<university> uni = (Vector<university>) session
					.getAttribute("uni");
			for (int i = 0; i < uni.size(); i++) {
		%>
	
	<p>
		Your university
		<%=i + 1%>:
	<p>
		<%=uni.get(i).getLocation()%>
	<p>
		<%=uni.get(i).getUniversity()%>
	<p>
		<%=uni.get(i).getDegreeDiscipline()%>
	<p>
		<%=uni.get(i).getMonth()%>/
		<%=uni.get(i).getYear()%>
	<p>
		<%=uni.get(i).getGPA()%>
	<p>
		<%=uni.get(i).getTitle()%>
		<%
			}
		%>
	
	<p>
		Your university
		<%=uni.size() + 1%>:
	<p>
		<%=session.getAttribute("location")%>
	<p>
		<%=session.getAttribute("university")%>
	<p>
		<%=session.getAttribute("degreeDiscipline")%>
	<p>
		<%=session.getAttribute("month")%>/
		<%=session.getAttribute("year")%>
	<p>
		<%=session.getAttribute("GPA")%>
	<p>
		<%=session.getAttribute("Title")%>
	<p>
		Your specialization is:
		<%=session.getAttribute("specailization")%>
	<form method="get" action="confirmation.jsp">
		<p>
			<input type="submit" value="Submit" />
	</form>
	</form method="get" action="cancelation.jsp">
	<p>
		<input type="submit" value="Cancel" />
	</form>
</body>
</html>